<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{companiasmsgs['navigation.back']}" action="/jsf/companias/viewCompanias.xhtml"/>
		
			<p:panel header="#{companiasmsgs['sucursales.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{companiasmsgs['sucursales.co001cdgo.title']}:*" />
							<h:inputText id="companias_co001cdgo" value="#{CompaniasComponent.sucursaleses.co001cdgo}" required="true" label="companias_co001cdgo" />
					<h:outputText value="#{companiasmsgs['sucursales.co001nomb.title']}:" />
							<h:inputText id="companias_co001nomb" value="#{CompaniasComponent.sucursaleses.co001nomb}" required="false" label="companias_co001nomb" />
					<h:outputText value="#{companiasmsgs['sucursales.co001esta.title']}:" />
							<h:inputText id="companias_co001esta" value="#{CompaniasComponent.sucursaleses.co001esta}" required="false" label="companias_co001esta" />
					<h:outputText value="#{companiasmsgs['sucursales.co001load.title']}:" />
							<h:inputText id="companias_co001load" value="#{CompaniasComponent.sucursaleses.co001load}" required="false" label="companias_co001load" />
					<h:outputText value="#{companiasmsgs['sucursales.co001fead.title']}:" />
							<p:calendar id="companias_co001fead" value="#{CompaniasComponent.sucursaleses.co001fead}" required="false"  converter="primefacesCalendarConverter" />
					<h:outputText value="#{companiasmsgs['sucursales.co001lomo.title']}:" />
							<h:inputText id="companias_co001lomo" value="#{CompaniasComponent.sucursaleses.co001lomo}" required="false" label="companias_co001lomo" />
					<h:outputText value="#{companiasmsgs['sucursales.co001femo.title']}:" />
							<p:calendar id="companias_co001femo" value="#{CompaniasComponent.sucursaleses.co001femo}" required="false"  converter="primefacesCalendarConverter" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{companiasmsgs['navigation.save']}" action="#{CompaniasComponent.saveCompaniasSucursaleses(CompaniasComponent.companias.co000nocia, CompaniasComponent.sucursaleses)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>